//
//  NSString+Helper.h
//  RLExample
//
//  Created by zaishengzheng on 16/3/8.
//  Copyright (c) 2016年 Mr.zheng. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSString (Helper)

+ (BOOL)SC_isBlankString:(NSString *)string;
+ (NSString *)SC_trimString:(NSString*)string;
+ (NSString *)SC_trimStringToNil:(NSString *)string;
+ (BOOL)SC_isValidatedPhone:(NSString *)phone;
+ (BOOL)SC_isValidatedVerificationCode:(NSString *)code;
+ (NSString *)SC_stringFromBeijingDate:(NSDate *)date;
+ (NSString *)SC_formatFromDate:(NSDate *)date;
+ (NSString *)imageTempPathByUUID;
+ (NSString *)imageNamedUUIDPath;
+ (NSString *)topRecommendPlistPath;
+ (NSString *)hotRecommendPlistPath;


- (NSString *)md5String;
+ (NSString *)UUIDString;
- (id)jsonObject;
- (NSString *)capitalLetter;

+ (CGSize)getSizeWithString:(NSString *)string Font:(UIFont *)font maxSize:(CGSize)maxSize;
- (NSString *)urlEncode;
+ (NSString *)SC_abbreviationDateString:(NSString*)dateString;
+ (NSString *)SC_EncodeUrlInfomWithPhone:(NSString *)phone sharer:(NSString *)sharer;
+(BOOL)checkUserID:(NSString *)userID;
+ (BOOL)isValidatedLicense:(NSString *)license;
+ (NSString *)addressStringWithProvinceName:(NSString *)provinceName cityName:(NSString *)cityName area:(NSString *)area detailAddress:(NSString *)detailAddress;
+ (NSString *)brandStringWithBrandName:(NSString *)brandName seriesName:(NSString *)seriesName speciesName:(NSString *)speciesName;
+ (NSString *)requiredStringWithBrandName:(NSString *)brandName seriesName:(NSString *)seriesName speciesName:(NSString *)speciesName;
- (NSString *)sc_trimFloatZero;
+ (NSString *)formateDate:(NSString *)dateString;
- (NSString *)merchantAbbreviation;
+ (NSString *)dateStringDate:(NSDate *)date;

+ (NSMutableAttributedString *)merchantMemberLevel:(NSInteger)memberLevel withName:(NSString *)name;
+ (NSString *)urlForShareListWithParam:(NSMutableDictionary *)param;

@end
